package pseudoAssemblerCompiler.twopassassembler.model.io;

import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.widgets.Text;

/**
 * User: Администратор
 * Date: 16.06.12
 * Time: 3:42
 */
public class ProgramReaderParser implements ParserInterface {

    private StyledText _editor;

    public ProgramReaderParser(StyledText editor) {
        _editor = editor;
    }

    @Override
    public String parseString(String stringToParse) {
        _editor.append(stringToParse);
        _editor.append(System.getProperty("line.separator"));
        return "";
    }
}
